package com.practice.filter.sitemesh3;

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;

public class SiteMesh3Filter extends ConfigurableSiteMeshFilter {

	@Override
	protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
		/**
		 * 此处可以使用java的方式配置sitemesh
		 * 
		 * 官方定义：
		 * If you also have an XML config file, SiteMesh will load this before calling applyCustomConfiguration(). This allows you to use XML for some configuration and Java for more advanced aspects.
		 * 
		 * example:
		 *   // Map default decorator. This shall be applied to all paths if no other paths match.
	     *   builder.addDecoratorPath("/*", "/default-decorator.html") 
	     *   // Map decorators to path patterns. 
	     *          .addDecoratorPath("/admin/*", "/another-decorator.html")
	     *          .addDecoratorPath("/*.special.jsp", "/special-decorator.html")
	     *   // Map multiple decorators to the a single path.
	     *          .addDecoratorPaths("/articles/*", "/decorators/article.html",
	     *                             "/decoratos/two-page-layout.html", 
	     *                             "/decorators/common.html")
	     *   // Exclude path from decoration.
	     *          .addExcludedPath("/javadoc/*")
	     *          .addExcludedPath("/brochures/*");
		 */
		super.applyCustomConfiguration(builder);
	}
	
	
	
}
